package com.quick.im.common.enums;

/**
 * 异常枚举类
 */
public enum GlobalExceptionEnum {
    SUCCESS("10000","success","成功","成功"),
    FAIL("999","fail","系统异常，稍后在试！","系统异常，稍后在试！"),
    USER_OFFLINE("10001","user offline","用户离线","成功"),
    MESSAGE_CONTENT_TYPE_NOT_NULL("10002","message content type not null","MessageContentType 不能为空！","10002 消息发送失败！"),
    MOBILE_PASSWORD_ERROR("10003","mobile or password error","手机号或密码错误","登陆失败，手机号或密码错误！"),
    MOBILE_REGISTERED_ERROR("10004","The mobile phone number is registered","手机号已注册","注册失败，手机号已注册！"),

    ;


    /**
     * 错误代码
     */
    private String code;
    /**
     * 错误信息英文
     */
    private String enInfo;
    /**
     * 错误信息中文
     */
    private String info;

    /**
     * 返回信息
     */
    private String result;

    GlobalExceptionEnum(String code, String enInfo, String info, String result) {
        this.code = code;
        this.enInfo = enInfo;
        this.info = info;
        this.result = result;
    }

    public String getCode() {
        return code;
    }

    public String getEnInfo() {
        return enInfo;
    }

    public String getInfo() {
        return info;
    }

    public String getResult() {
        return result;
    }
}
